 class Date {
    int year;
    int month;
    int day;

    Date(){
        this(1944,11,1);
        System.out.println("调用无参构造方法");
    }
    Date(int year, int month, int day){

        this.year = year;
        this.month = month;
        this.day = day;

        System.out.println("调用有参构造方法");

    }

    public void setDay(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public void printDay() {
        System.out.println(this.year + "年" + this.month + "月" + this.day + "日");
    }
}
